package top.zlcode.api.ai;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.zlcode.api.ai.domain.dto.ChatDTO;
import top.zlcode.api.ai.domain.vo.ChatVO;
import top.zlcode.common.core.constants.Constants;
import top.zlcode.common.core.domain.R;

@FeignClient(contextId = "RemoteChatService", value = Constants.AI_SERVICE)
public interface RemoteChatService {

    /**
     * 简单问答接口, 可以自行拼接历史对话
     */
    @PostMapping("/chat/ask")
    R<ChatVO> ask(@RequestBody ChatDTO chatDTO);

}
